﻿@model handvn.Models.KeyWord

@{
    ViewBag.Title = "Details";
}
@if (Request.IsAuthenticated && @Session["LoaiTaiKhoan"]!=null)
{
    if( @Session["LoaiTaiKhoan"].ToString() == "admin")
    {
<h2>Details</h2>

<fieldset>
    <legend>KeyWord</legend>

    <div class="display-label">TenTuKhoa</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TenTuKhoa)
    </div>

    <div class="display-label">SoLuotTim</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SoLuotTim)
    </div>

    <div class="display-label">TinhTrang</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TinhTrang)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.KeyWordID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
}
}
else
{
    <p>
        Xin vui lòng đăng nhập</p>
    <script type="text/javascript">
        window.location.href = "http://handvn.com/Account/Admin"
    </script>
}